package nml.mail.reg.smtp;


import nml.mail.reg.Reg;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class  hotdak_net extends Reg{

	public void reg(String username, String password) {		
		

		String url = "http://mail.hotdak.net/email/scripts/serviceMenu.pl?user=new";
		get(url);
		
 
		dr.findElement(By.linkText("SIGN UP NOW")).click();

		dr.findElement(By.name("loginName")).sendKeys(username);
		dr.findElement(By.name("password")).sendKeys(password);
		dr.findElement(By.name("passwordConfirm")).sendKeys(password);
		dr.findElement(By.name("passwordQuestion")).sendKeys("passwordQuestion");
		dr.findElement(By.name("passwordAnswer")).sendKeys("passwordAnswer");
		dr.findElement(By.name("firstName")).sendKeys("Jpack");
		dr.findElement(By.name("lastName")).sendKeys("Deny");
		dr.findElement(By.name("streetAddress")).sendKeys("Pickdl 3th xx 6");
		dr.findElement(By.name("city")).sendKeys("New York");
		dr.findElement(By.name("state")).sendKeys("Washington");
		dr.findElement(By.name("region")).sendKeys("202");
		dr.findElement(By.name("postalCode")).sendKeys("98103");
		dr.findElement(By.name("birthMonth")).sendKeys("April");
		dr.findElement(By.name("birthDay")).sendKeys("21");
		dr.findElement(By.name("birthYear")).sendKeys("1980");
		dr.findElement(By.name("gender")).sendKeys("Male");
		dr.findElement(By.name("primaryLang")).sendKeys("English");
		dr.findElement(By.name("householdIncome")).sendKeys("Over $200,000");
		dr.findElement(By.name("occupation")).sendKeys("Chairman");
		dr.findElement(By.name("industry")).sendKeys("Advertising");
		dr.findElement(By.name("interests")).click();
		dr.findElement(By.name("humanTest")).click();
		
		System.out.println(username+"@hotdak.net");
	}

	public static void main(String[] args) {
		new hotdak_net().reg("qq331798654", "qq@#$P798654");
	}
	
	
}
